
<!DOCTYPE html>

<html>
    <head>
        <meta charset=UTF-8>
        <title>HTML5 コーディング</title>
        
        <style>
        
        * {
            margin: 0px;
            padding: 0px;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            
            font-family: "Meiryo", Arial, Helvetica, sans-serif;
            line-height: 1.5em;
            font-size: 12px;
        }
        
        h1 {
            font-size: 25px;
        }
        
        #header,
        #nav,
        #main,
        #main article,
        #side,
        #footer {
            margin: 10px;
            padding: 5px;
            border: 5px solid black;
            background-color: rgba(0, 0, 0, 0.125);
            border-radius: 5px;
            
            text-align: center;
        }
        
        #header {
            background-color: rgba(255, 0, 0, 0.125);
            min-width: 600px;
        }
        
        #contents {
            display: -webkit-box;
            display: -moz-box;
            display: box;
            -webkit-box-pack: center;
            -moz-box-pack: center;
            width: 100%;
            min-width: 600px;
            min-height: 600px;
        }
        
        #main {
            -webkit-box-flex: 1;
            -moz-box-flex: 1;
            -moz-width: 800px;
            min-width: 400px;
            background-color: rgba(0, 255, 0, 0.125);
        }
        
        #side {
            width: 200px;
            background-color: rgba(0, 255, 0, 0.125);
        }
        
        #footer {
            min-width: 600px;
            background-color: rgba(0, 0, 255, 0.125);
        }

        
        </style>
        
        <script>
        /* ここに JavaScript を書く */
        </script>

    </head>
    
    <body>
        <header id="header">
            <h1>&lt;header&gt;</h1>
            
            <nav id="nav">
                <h1>&lt;nav&gt;</h1>
            </nav>
        </header>
        
        <div id="contents">
            
            <section id="main">
                <h1>&lt;section&gt;</h1>
                
                <article>
                    <h1>&lt;article&gt;</h1>
                </article>
                
                <article>
                    <h1>&lt;article&gt;</h1>
                </article>
                
                <article>
                    <h1>&lt;article&gt;</h1>
                </article>
                
            </section>
            
            <aside id="side">
                <h1>&lt;aside&gt;</h1>
            </aside>
            
        </div>
        
        <footer id="footer">
            <h1>&lt;footer&gt;</h1>
        </footer>
    </body>
</html>



